package org.kjtc.balanceService;

import java.util.List;

import org.kjtc.balanceEntity.PowerFactor;
import org.kjtc.service.BaseService;
import org.springframework.stereotype.Service;

@Service("powerFactorService")
public class PowerFactorService extends BaseService{

	@SuppressWarnings("unchecked")
	public List<PowerFactor> getPowerFactor(PowerFactor powerFactor) throws Exception{
		return (List<PowerFactor>)this.getDaoSupport().findForList("T_PowerFactor.getPowerFactor",powerFactor);
	}
	
	public int insertPowerFactor(PowerFactor powerFactor) throws Exception {
		return (int) this.getDaoSupport().save("T_PowerFactor.insertPowerFactor", powerFactor);
	}
	
	public int updatePowerFactor(PowerFactor powerFactor) throws Exception {
		return (int) this.getDaoSupport().update("T_PowerFactor.updatePowerFactor", powerFactor);
	}
	
	public int deletePowerFactor(PowerFactor powerFactor) throws Exception {
		return (int) this.getDaoSupport().update("T_PowerFactor.deletePowerFactor", powerFactor);
	}
}
